//
//  WGMTabBarViewController.h
//  IYoker_Organization
//
//  Created by chunjian Dai on 15/12/28.
//  Copyright © 2015年 wangguimin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NetworkManager.h"
#import "TouchTableView.h"
#import "MJRefresh.h"
//#import "DataBaseTool.h"
#import "NillView.h"


//  切换页面操作来源分类
typedef NS_ENUM(NSUInteger,OpenType) {
    OpenTypePush, //  push开启
    OpenTypeRoot,    //  一级界面
    OpenTypePresent    //  模态开启
};



@interface WGMTabBarViewController : UIViewController<NetworkingHandleDelegate,UITableViewDelegate,UITableViewDataSource>

@property (nonatomic,strong) UIButton *leftButton;//    导航条左按钮

@property (nonatomic,strong) UIButton *rightButton;//    导航条右按钮

@property (nonatomic,strong) TouchTableView *tableView;

@property (nonatomic,assign) OpenType openType;//  视图控制器的打开方式

@property (nonatomic,strong) NSMutableDictionary *params;

@property (nonatomic,strong) NetworkManager *manager;

//@property (nonatomic,strong) DataBaseTool *baseTool;

@property (nonatomic,strong) MJRefreshNormalHeader *header;

@property (nonatomic,strong) MJRefreshBackNormalFooter *footer;

@property (nonatomic,strong) MJRefreshGifHeader *gifHeader;

@property (nonatomic,assign) NSInteger pageNo;

@property (nonatomic,assign) NSInteger pageSize;

@property (nonatomic,strong) NillView *nillView;



- (void)handleLeftButtonAction:(UIButton *)sender;

- (void)handleRightButtonAction:(UIButton *)sender;

/**
 *  下拉刷新和上拉加载
 */

- (void)handleHeaderRefreshingAction;

- (void)handleFooterRefreshingAction;

- (void)endRefresh;

- (void)initData;

- (void)initNofotication;

- (void)initNavigation;

- (void)initView;

- (void)initNetWork;

- (void)initNotification;

- (void)loginOut:(NSNotification *)notification;
@end
